import Vue from 'vue'
import Vuex from 'vuex'
import VueCookies from 'vue-cookies'

Vue.use(Vuex);

const store = new Vuex.Store({
    state: {
        mainLoader: false,
        accessToken: VueCookies.get('accessToken')
    },
    mutations: {
        mainLoaderChange(state, status) {
            state.mainLoader = status;
        }
    }
})

export default store;
